# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-parsel
_pkgname=parsel
pkgver=1.6.0
pkgrel=0
pkgdesc="Library to extract data from HTML and XML using XPath and CSS selectors"
url="https://github.com/scrapy/parsel"
arch="noarch"
license="BSD-3-Clause"
depends="py3-cssselect py3-lxml py3-six py3-w3lib"
checkdepends="py3-pytest py3-sybil"
source="$_pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d3161522e1102cceeb1f29ab020b33019d4ac7f096cfab8fbe40f54073e49afc24f02aa54206d86f56c8f92e3db2d0d2f8a3dbdfa6417492cf299201f2ae6604  parsel-1.6.0.tar.gz"
